<template>
  <view class="demo-container">
    <!-- 基础用法 -->
    <view class="demo-block">
      <view class="demo-block__title">基础用法</view>
      <view class="demo-block__content">
        <fu-link>默认链接</fu-link>
        <fu-link type="primary">主要链接</fu-link>
        <fu-link type="success">成功链接</fu-link>
        <fu-link type="warning">警告链接</fu-link>
        <fu-link type="danger">危险链接</fu-link>
        <fu-link type="info">信息链接</fu-link>
      </view>
    </view>
    
    <!-- 下划线 -->
    <view class="demo-block">
      <view class="demo-block__title">下划线</view>
      <view class="demo-block__content">
        <fu-link underline>默认链接</fu-link>
        <fu-link type="primary" underline>主要链接</fu-link>
      </view>
    </view>
    
    <!-- 禁用状态 -->
    <view class="demo-block">
      <view class="demo-block__title">禁用状态</view>
      <view class="demo-block__content">
        <fu-link disabled>默认链接</fu-link>
        <fu-link type="primary" disabled>主要链接</fu-link>
      </view>
    </view>
    
    <!-- 图标 -->
    <view class="demo-block">
      <view class="demo-block__title">图标</view>
      <view class="demo-block__content">
        <fu-link prefix-icon="&#xe6e3;">前缀图标</fu-link>
        <fu-link suffix-icon="&#xe6e5;">后缀图标</fu-link>
      </view>
    </view>
    
    <!-- 自定义样式 -->
    <view class="demo-block">
      <view class="demo-block__title">自定义样式</view>
      <view class="demo-block__content">
        <fu-link color="#8f2d56" :size="32">自定义颜色和大小</fu-link>
      </view>
    </view>
    
    <!-- 页面跳转 -->
    <view class="demo-block">
      <view class="demo-block__title">页面跳转</view>
      <view class="demo-block__content">
        <fu-link 
          type="primary"
          href="https://uviewui.com/components/link.html"
          suffix-icon="right"
        >跳转到首页</fu-link>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {}
  }
}
</script>

<style lang="scss" scoped>
.demo-container {
  padding: 20rpx;
}

.demo-block {
  margin-bottom: 30rpx;
  
  &__title {
    margin-bottom: 20rpx;
    font-size: var(--fu-font-size-lg);
    color: var(--fu-text-color);
  }
  
  &__content {
    background-color: #fff;
    border-radius: var(--fu-radius-base);
    padding: 30rpx;
    display: flex;
    flex-wrap: wrap;
    gap: 30rpx;
  }
}
</style> 